﻿import request from '/@/utils/request';
enum Api {
  AddXueke = '/api/xueke/add',
  DeleteXueke = '/api/xueke/delete',
  UpdateXueke = '/api/xueke/update',
  PageXueke = '/api/xueke/page',
  DetailXueke = '/api/xueke/detail',
}

// 增加学科
export const addXueke = (params?: any) =>
	request({
		url: Api.AddXueke,
		method: 'post',
		data: params,
	});

// 删除学科
export const deleteXueke = (params?: any) => 
	request({
			url: Api.DeleteXueke,
			method: 'post',
			data: params,
		});

// 编辑学科
export const updateXueke = (params?: any) => 
	request({
			url: Api.UpdateXueke,
			method: 'post',
			data: params,
		});

// 分页查询学科
export const pageXueke = (params?: any) => 
	request({
			url: Api.PageXueke,
			method: 'post',
			data: params,
		});

// 详情学科
export const detailXueke = (id: any) => 
	request({
			url: Api.DetailXueke,
			method: 'get',
			data: { id },
		});


